package org.jeecg.modules.flowable.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName(value = "flow_instance")
@ApiModel(value = "flow_instance对象", description = "流程实例管理")
public class FlowInstance implements Serializable {

    @ApiModelProperty(value = "流程实例Id")
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "流程名称")
    private String name;

    @ApiModelProperty(value = "表单名称")
    private String businessName;

    @ApiModelProperty(value = "表单标识")
    private String businessKey;

    @ApiModelProperty(value = "表单记录id")
    private String businessDataId;

    @ApiModelProperty(value = "表单初始提交数据")
    private String businessData;

    @ApiModelProperty(value = "流程实例状态")
    private Integer instanceStatus;

    @ApiModelProperty(value = "操作版本")
    private BigDecimal operationVersion;

    @ApiModelProperty(value = "流程定义id")
    private String processDefinitionId;

    @ApiModelProperty(value = "流程定义key")
    private String processDefinitionKey;

    @ApiModelProperty(value = "流程发起用户Id")
    private String createUserId;

    @ApiModelProperty(value = "流程发起用户名称")
    private String createUserName;

    @ApiModelProperty(value = "流程发起时间")
    private LocalDateTime createTime;

}
